package com.lishe.lishe.lishe.module.pay.http;

import com.lishe.lishe.asynchttp.HttpUtils;
import com.lishe.lishe.lishe.common.Globals;
import com.loopj.android.http.RequestParams;
import com.loopj.android.http.ResponseHandlerInterface;

/**
 * Created by shino on 2017/8/23.
 */

public class HttpPay {
    //数据所在的表
    private static final String TABLE_ORDER = "Order/";

    /**
     * 订单支付接口
     * @param token
     * @param paymentid 支付id
     * @param pwd 支付密码
     * @param response
     */
    public static void orderPay(String token, String paymentid, String pwd, ResponseHandlerInterface response){
        RequestParams params = new RequestParams();
        params.put("token", token);
        params.put("paymentid", paymentid);
        params.put("pwd", pwd);
        HttpUtils.post(Globals.LISHE_URL + TABLE_ORDER + "operPay/", params, response);
    }
}
